package truef.service.express.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.base.service.impl.GenericTreeManagerImpl;
import truef.express.dao.ExpressCompanyDao;
import truef.express.domain.Courier;
import truef.express.domain.ExpressCompany;
import truef.service.express.service.ExpressCompanyManager;

@Service(value="expresscompanyManager")
public class ExpressCompanyMangerlmpl extends GenericTreeManagerImpl<ExpressCompany,Long> implements ExpressCompanyManager{

	ExpressCompanyDao expresscompanyDao;
	
	@Autowired
	public void setShoppingCartDao(ExpressCompanyDao expresscompanyDao) {
		this.expresscompanyDao = expresscompanyDao;
		this.treeDao = this.expresscompanyDao;
		this.dao = this.treeDao;
	}

	@Override
	public String getCourierPhone(String id) {
		// TODO Auto-generated method stub
		
		return Courier.phonenumber.get(id);
	}
}